import { Component, OnInit, ViewEncapsulation, Inject } from '@angular/core';
import { RestService } from './../../services/rest.service';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material';

@Component({
  selector: 'app-error-dialog',
  templateUrl: './error-dialog.component.html',
  styleUrls: ['./error-dialog.component.css'],
  encapsulation: ViewEncapsulation.None
})
export class ErrorDialogComponent implements OnInit {
  contentHeight = 'auto';
  message: string;

  constructor(public dialogRef: MatDialogRef<ErrorDialogComponent>,
              @Inject(MAT_DIALOG_DATA) private dialogData: any) {
    this.message = dialogData.message;
  }

  ngOnInit() {
  }
}
